
import VueRouter from "vue-router";
//在Vue里面使用VueRouter
import Vue from "vue";
Vue.use(VueRouter);
import twoTreeLastCopy from "./components/twoTreeLastCopy/indexCopy"
import twoTreeLast from "./components/twoTreeLast/index"
import treeTableSelection from "./components/treeTableSelection/index"
import treeTableValidate from "./components/treeTableValidate/index"
import twoTree from "./components/twoTree/index"
import validateFormTableCom from "./components/validateFormTableCom/index"
import registerCom from "./components/registerCom/index.vue"
import slots from "./components/slots/index"
import lowcode from "./components/lowcode/index"
import keySummary from "./components/keySummary/index"
import hrvue from "./components/hrvue/index"
import i18n from "./components/i18n/index"
import elementuiTableClass from "./components/elementuiTableClass/index"
import collapseMenu from "./components/collapseMenu/index"
import elementuiSelectAll from "./components/elementuiSelectAll/index"
import user from "./components/user/index"
import tableTreeToggle from "./components/tableTreeToggle/index"
import sofar from "./components/sofar/index"
import searchElTable from "./components/searchElTable/index"
import dynamicElForm from "./components/dynamicElForm/index"
import elselectTree from "./components/elselectTree/index"
import virtualScroll from  './components/virtualScroll/index'
import ifshow from "./components/ifshow/index"
import dateDisabled from "./components/dateDisabled/index"
import count from "./components/counttable/index"
import selectSeat from "./components/selectSeat/index"
import jstest from "./components/jstest/index"
import modelBind from "./components/modelBind/modelBind"
import selectMul from "./components/selectMul/selectMul"
import checkboxGroup from "./components/checkboxGroup/index"
import selectTree from "./components/selectTree/index"
import cascader from "./components/cascader/index"
import weekly from "./components/weekly/index"
import tableSummary from "./components/tableSummary/index"
import dataDesensi from "./components/dataDesensi/index"
import jsdate from "./components/jsdate/index"
import vViewer from "./components/vViewer/index"
import avue from "./components/avue/index"
import avueCascader from "./components/avueCascader/index"
import avueValidTime from "./components/avueValidTime/index"
import avueCrudRadio from "./components/avueCrudRadio/index"
import avueRowEdit from "./components/avueRowEdit/index"
import avueSingleCom from "./components/avueSingleCom/index"
import elementui from "./components/elementui/index"
import elementtab from "./components/elementtab/index"
import elementuiUpload from "./components/elementuiUpload/index"
import elementuiTable from "./components/elementuiTable/index"
import elementuiInput from "./components/elementuiInput/index"
import elementuiSelect from "./components/elementuiSelect/index"
import elementuiTableTree from "./components/elementuiTableTree/index"
import elementuiTree from "./components/elementuiTree/index"
import elementuiDialogTableTree from "./components/elementuiDialogTableTree/index"
import treeParentDisabledChilren from "./components/treeParentDisabledChilren/index"
import lazyTree from "./components/lazyTree/index"
import positionTree from "./components/positionTree/index"
import childrenComBindModel from "./components/childrenComBindModel/index"
import suspension from "./components/suspension/index"
import elementuiTableValid from "./components/elementuiTableValid/index"
import pagination from "./components/pagination/index"
import Tinymce from "./components/Tinymce/editor"
import VideoPlayer from "./components/VideoPlayer/index"
import epm from "./components/epm/index"
import cbsProblemEventScore from "./components/cbsAssessmentResultsApplication/cbsProblemEventScore"
import projectImportantPerProblemEventScore from "./components/cbsAssessmentResultsApplication/projectImportantPerProblemEventScore"
const router = new VueRouter({
    //配置路由
    routes:[
        {
            path:'/twoTreeLast', //两颗树（对项目）
            component:twoTreeLast
        },
        {
            path:'/twoTreeLastCopy', //两颗树（军）
            component:twoTreeLastCopy
        },
        {
            path:'/treeTableSelection', //批量注册组件
            component:treeTableSelection
        },
        {
            path:'/treeTableValidate', //批量注册组件
            component:treeTableValidate
        },
        {
            path:'/twoTree', //批量注册组件
            component:twoTree
        },
        {
            path:'/registerCom', //批量注册组件
            component:registerCom
        },
        {
            path:'/slots', //插槽
            component:slots
        },
        {
            path:'/lowcode', //低代码
            component:lowcode
        },
        {
            path:'/validateFormTableCom',
            component:validateFormTableCom
        },
        {
            path:'/keySummary',
            component:keySummary
        },
        {
            path:'/hrvue',
            component:hrvue
        },
        {
            path:'/i18n',
            component:i18n
        },
        {
            path:'/elementuiTableClass',
            component:elementuiTableClass
        },
        {
            path:'/elementuiSelectAll',
            component:elementuiSelectAll
        },
        {
            path:'/collapseMenu',
            component:collapseMenu
        },
        {
            path:'/',
            component:jstest
        },
        {
          path:'/virtualScroll',
          component:virtualScroll
        },
        {
          path:'/searchElTable',
          component:searchElTable
        },
        {
          path:'/dynamicElForm',
          component:dynamicElForm
        },
        {
          path:'/elselectTree',
          component:elselectTree
        },
        {
            path:'/dateDisabled',
            component:dateDisabled
        },
        {
            path:'/ifshow',
            component:ifshow
        },
        {
            path:'/count',
            component:count
        },
        {
            path:'/selectSeat',
            component:selectSeat
        },
        {
            path:'/tableSummary',
            component:tableSummary
        },
        {
            path:'/cascader',//cascader级联选择器
            component:cascader
        },
        {
            path:'/selectTree',
            component:selectTree
        },
        {
            path:'/weekly',
            component:weekly
        },
        {
            path:'/jstest',
            component:jstest
        },
        {
            path:'/selectMul',
            component:selectMul
        },
        {
            path:'/modelBind',
            component:modelBind
        },
        {
            path:'/checkboxGroup',
            component:checkboxGroup
        },
        {
            path:'/dataDesensi',
            component:dataDesensi
        },
        {
            path:'/js Date',
            component:jsdate
        },
        {
            path:'/vViewer',
            component:vViewer
        },
        {
            path:'/avue',
            component:avue
        },
        {
            path:'/avueCascader',
            component:avueCascader
        },
        {
            path:'/avueValidTime',
            component:avueValidTime
        },
        {
            path:'/avueCrudRadio',
            component:avueCrudRadio
        },
        {
            path:'/avueRowEdit',
            component:avueRowEdit
        },
        {
            path:'/avueSingleCom',
            component:avueSingleCom
        },
        {
            path:'/elementui',
            component:elementui
        },
        {
            path:'/elementtab',
            component:elementtab
        },
        {
            path:'/elementuiUpload',
            component:elementuiUpload
        },{
            path:'/elementuiTable',
            component:elementuiTable
        },{
            path:'/elementuiInput',
            component:elementuiInput
        },{
            path:'/elementuiSelect',
            component:elementuiSelect
        },{
            path:'/childrenComBindModel',
            component:childrenComBindModel
        },{
            path:'/elementuiTableTree',
            component:elementuiTableTree
        },{
            path:'/elementuiTree',
            component:elementuiTree
        },{
            path:'/elementuiDialogTableTree',
            component:elementuiDialogTableTree
        },{
            path:'/lazyTree',
            component:lazyTree
        },{
            path:'/treeParentDisabledChilren',
            component:treeParentDisabledChilren
        },{
            path:'/positionTree',
            component:positionTree
        },{
            path:'/Tinymce',
            component:Tinymce
        },{
            path:'/VideoPlayer',
            component:VideoPlayer
        },{
            path:'/suspension',
            component:suspension
        },{
            path:'/elementuiTableValid',
            component:elementuiTableValid
        },{
            path:'/pagination',
            component:pagination
        },
        {
            path:'/epm',
            component:epm
        }, {
            path:'/cbsProblemEventScore',
            component:cbsProblemEventScore
        },{
            path:'/projectImportantPerProblemEventScore',
            component:projectImportantPerProblemEventScore
        },
        {
            path:'/user',
            component:user
        },
        {
            path:'/sofar',
            component:sofar
        },
        {
            path:'/tableTreeToggle',
            component:tableTreeToggle
        },
    ],
    //设置滚动条的位置
    scrollBehavior() {
        //滚动行为这个函数,需要有返回值,返回值为一个对象。
        //经常可以设置滚动条x|y位置 [x|y数值的设置一般最小是零]
        return { y: 0 };
    }
});
export default router;
